package com.itheima.service;

import com.itheima.pojo.Menu;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;

public interface UserService {
    User findByUsername(String username);


    List<Role> loadRolesByUserId(Integer id);

    Set<Permission> getPermissions(Integer id);

    LinkedHashSet<Menu> getMenus(Integer id);
}
